<!DOCTYPE html>
<html lang="en" manifest="webstorage.appcache">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="number" style="width: 100px;height: 100px;background-color: #7fff78"></div>
<script>
    localStorage.text = "张三";
    sessionStorage.text = "李四";
    let div = document.getElementById("number");
    let work = new Worker("worker.js");
    work.onmessage = function (ev) {
        div.innerText = localStorage.text + ev.data;
    }
</script>
</body>
</html>
